Implement min heap functions