Implemented quaternions and rigid affine transformations in 3D,
including unit tests.