Peak finding

Work on finding peaks in 1D curves to support automatic calibration.
might consider adding a peak index too