construct the csa from bwt

The code should sample the suffix and inverse suffix arrays using the psi function.