Change poolheap to reuse free memory to track its free blocks

- minor changes to hashmap and heatmap