Updating vector and quaternion class