Make several heap functions static