Implemented change of basis

use Quaternions to define change of basis. If the change in basis is
very small, automatically chooses a reference frame 45 degrees out of
phase with inertial frame to to improve accuracy of the cross product
calculations.