Implement the fuzzy search algorithm (algorithm is efficient, but can be improved further)