added knuth-morris-pratt and patternAnalysing | works with test-data