Go implementation of BWT