WIP - generifying the suffix tree