Completed Heap class and generated JavaDoc.