split heap.c module from mm.c