Added KMP algo.