Add min-max heap implementation.