fixed peak find slow speed
fixed peak find error when window is out of range of the spectrum
removed min/max function on data_range
small optimization fixes
Merge remote-tracking branch 'mfarhan/fix_peak_find'