Implementation of the burrows-wheeler transform in Swift