An algorithm to solve word searches. (No GUI.)