Added metaphone metric, tests, and moved some functions to Util.