Implemented rank transform for RDM.