add more kmp test case
fix max_match reverse params order
add pain algorithm, test, and readme