second method

implements a priority queue that returns the singleton trees for all
those new leaves we created