heap_extract_min with test and O(1) pop_fst