implementing some functions in DualQuaternion class