Solved peakOfPeaks. Needs a nicer sol.