how to borrow Heap using malloc