A spatial correlation analysis for a toroidal universe