pub fn first_eq(arr: &[f64], cut: f64) -> Option<usize>
Return first index of arr equal to cut
arr
cut