Implement InverseTransform for BWT