Implementation of suffix array data structure for string searching