add the p1_8

but the time is not good since the result costs n^2