Added hasSubsequence but probably not very well