implement proof of concept for subsequence matching