refactor module kmp : use variable length array to store the partial
matched table;