Creates a rotation matrix to map a vector x to [1 0 0 ... 0]
rotationMatrixToX1(x)
x
Vector (sequence with J coordinates)
Rotation matrix (JxJ)