added entry function to SuffixArray