Create Knuth–Morris–Pratt.java