Adding first version of SpatialPyramidPooling.