matching nav_msgs/OccupancyGrid requirements for data
using a more appropropriate cache radius, which combines the radius for inflation plus number of cells where the cost should not be 0
added a cache size variable to track dynamic memory allocation and reduce memory loss