Reversibility, Memory Formation And Collective Rotations In Dense Granular Media