Calculate the Burrows and Wheelers transform from the SA.