Added grid for spatial pooling

Feature vector is pooled separately over an NxM grid centered on the
image.