Scrabble word finder in Ruby, using a trie structure