Adds implementation of Heapsort using Tree.