A spatial correlation aware algorithm to perform efficient data collection in wireless sensor networks