Completed heap implementation