Small integer based implementation of patricia trie