8_queen, kmp