topological-subsequence-matching