basic finalization for the heap in all policies
fix
Merge pull request #43 from slizzered/issue-11_finalizeHeap

finalize heap