public static MaxHeap <T> Heapify(IEnumerable <T> items) { var heap = new MaxHeap <T>(); return(heap.BulkInsert(items) as MaxHeap <T>); }