pub fn build_suffix_array(text: &[u8]) -> Vec<u32>
Build a suffix array for the given text.
The output sa does not contain a sentinel suffix — its length is exactly text.len(), matching what the C++ CaPS_SA produces.
sa
text.len()
CaPS_SA