Added complete branch awareness to heap tree