Added *extend_heap from textbook, still fail as undefined references to more functions