Update Knuth–Morris–Pratt.java