naive ver. skips
Naive ver. localMaxima
naive ver. histogram
first attempt to refactor skips
first attempt to refactor localMaxima
suggestions from lpaste
redundant bracket
simplify pickN