SuffixArray Algorithm for String Matching