minimum spanning trees and heap added