C# console application with implementation of word search algorithm