Fix peak find slow speed when spectrum has a large number of data points