Fuzzy search implementation in C