Substring problem updated.

Another implementation of the Knutt-Morris-Patt algorithm much easier
to follow. Explanatory javadoc with example introduced for that method.
commit for graph-related problems