When building a model making sure that rotation matrices are rotation matrices.

In the previous version, the rotation matrices was initialized using a random
3x3 matrix. This commit make sure that the random matrix belong to SO(3).