Knuth-Morris-Pratt Algorithm Prefix Render in Visual C#