Added min-heap with popMin functionality