Added XArrays.reverse and XArrays.rotate