Adds a rotation algorithm