added support for cube rotations in algorithm input