Week 10. Problem 7 Complete

Additional BWT optimization.