Code golf for a "skips" method
A code golf version of localMaxima