Continued implementation of 1D partitioning

Continued implementation of 1D partitioning