fixed dendrogram tree construction
stop condition for dendrogram merging (we might skip half of the queue)
swapped left and right branches
tree nodes mapping