prefix function of KMP