Call exit(3) instead of _exit(2) if fail to notify the parent
Add helper functions for heap