Hi,
I noticed several places where we access `struct binaryheap` directlyinstead of using binaryheap_size() and binaryheap_empty() whichdoesn't seem right. Here is the patch.
-- Best regards,Aleksander Alekseev