Now Handlers are correctly compared based on their confidence, so that the one with the highest confidence is first to be retrieved from the minheap.