--- from: http://rosettacode.org/wiki/Burrows–Wheeler_transform