Convert min-heap to max-heap
Inline num_cmp()
Implement pr as a function pointer instead
Replace pr() with syslog(3) if daemonize() is called