now using bytestring-trie
split code into module and main
Merge branch 'trie'