Dynamic Programming & Spatial Locality