add spatial_pyramids code