add a .peaks method to ruby's Enumerable that will find all the peaks within your array