adds the algorithms gem and uses trie for word lookups. Also removes local variable i from SquareSearcher