pub fn sa_search(
    input_string: &Vec<u8>,
    pattern: &Vec<u8>,
    suffix_array: &Vec<i32>
) -> Option<(i32, i32)>
Expand description

“Search for the pattern P in the string T.”
Input: Vector of bytes & its suffix array and vector of pattern string.
Output: tuple of index of suffix array for matched pattern and pattern count
Even with multiple counts, only one index is output.