implement word distance finder class