heap_pop
if (!heap_pop(&ca->heap, b, bucket_min_cmp)) {
heap_pop(iter, b, cmp);
heap_pop(&ca->heap, b, bucket_cmp);
while (heap_pop(&ca->heap, b, bucket_cmp))