KMP, removed an unused function, TESTED, ACCEPTED