Design and implement a set of functions to manage a heap (free store) in C++.