much simpler code for finding closest match (also gets a sorted list of matches)
Merge branch 'master' of github.com:sighmon/mearth