Accepted by hihocoder finally

The hihocoder requires the times the pattern appears in the text. When
matched, you should not go back to the next position of current starting
position, because it will be O(n * m) algorithm