Peak finding

Work on finding peaks in 1D curves to support automatic calibration.
re: Enum conversation we had the other day.  This is an example of where I would have used an enum in my Java graduate student days. Note that I'm not advocating for its usage here, or even that it was reasonably correct to use enums like that in Java, merely that this is how I used them