Implemented basic heap creation/destruction