added algorithm2 for testing
changed default value for the filterWindowSize
changed isPeak method that will return NO if there was a peak in the last w frames, and changed the algorithm according to it
fixed the facebook-like scrolling