HW3: localMaxima