finished intial port of DualQuat