code for rotation of matrices
public api for rotating - stubs
merge from remote