Added function to rotate matrix to provide alternative column clustering.