debugged bwt.py (comparisons in merge function)