bw_encode now takes a list of orderings to order every column
independently (n-th column is ordered according to the n-th order in the
list)
if not enough orders are specified, the last one from the list is taken
for the remaining columns