A simple C++ program for matching partial strings with words from a dictionary