Added hasSubsequence for List.