Adding a freeGrid method
Adding a freePopulation method
Freeing population and grid before any allocation