pub fn nearest_binary<T: Float>( vec: &[T], target_val: T, start_index: usize, stop_index: usize ) -> usize