let
get heap (idx : arrayidx) =
if
idx >= heap.last
then
raise
Not_found
else
Array
.get heap.arr idx