Peak finding

Work on finding peaks in 1D curves to support automatic calibration.
Going to punt this to a later PR as I didn't actually touch this.