Tryin to make BWT work, some small bug though