Add dropWhile and dropRightWhile methods with tests