Added an algorithm to check a path for a given string in a char. mat.