Change rotate90 to work in place