Partition the data