A simple implementation of a Trie in Ruby