Find local peaks of a set of values
localMaxima(x)
x
A vector of numbers to examine for the local peaks
The peaks of the vector of the numbers