pub fn get_max_bin( voltages: &Vec<f32>, lower_bound: usize, window: usize, ) -> Result<usize, WaveformError>
Return the bin with the maximum ADC value