unbwt is working backwards

have to reverse the output of unbwt and have to print the lines of the
seach results