Changes in the priority queue and a start to get resolve a tree with 3 levels