again, partially finished massHeap.ml