Added hasSubsequence