Implement spatial partitioning