Measure preserving transformations and rearrangements