Implemented scanLeft and added pending tests for scanRight and
hasSubsequence.