implement mutable matrix division
implement PRotate
fixes for reordering