added quaternion calculation file