gmr function

Generalized Means Rotation (GMR)