Trie code
First attempt at a ranking trie