Add new 'subsequenceOf' function