made edit_distance a class
incorporating google test framework