http://www.ruanyifeng.com/blog/2013/05/Knuth–Morris–Pratt_algorithm.html
http://m.blog.csdn.net/itsenlin/article/details/21491787
字符串匹配的KMP算法
原文:http://www.cnblogs.com/shihuvini/p/7735788.html