Implemented mesh partitioning