Functions of bounded variation and rearrangements