heap: Add a min-heap datastructure.