fixes mem allocation on A*
Merge pull request #20 from asalani93/asSim

fixes mem allocation on A*