Added the second step improvement of FP KMP algorithm