Change queue(add tree to queue)