binary_heap_retain

The tracking issue for this feature is: #71503