fixed bug in genWireRR. Row reduction is still not fully implemented, but mergesort works.