refactor double metaphone class