added 3d tree using quaternion class