Quaternions

Added quaternion code