Feature/hat trie

~10x memory efficiency improvement thanks to the use of hat-trie (https://github.com/dcjones/hat-trie) as a boolean map to back lookups.