Add a temp function to allocate heap number