add solutions to some poj kmp problems