POJ 3461 KMP - This is a good topic