BWT on array