added deletion of new'ed pointers
Merge pull request #5 from justanothercoder/master

A* second update