Update qtree.cpp

license added
Update qtree.cpp
licensing message
pointer 2
fixed wrong qd index
added some changes from master