Playing around with Dictionary Lookups, Tries, and Backtracking in Node and Ruby