added support for 180 deg rotation of each matrix