implements the first edition of the 'partitionUI' algorithm (i.e., before afg added sub-grid support in r2349), but it is nevertheless a useful experiment and facilitates testing a C/C++ implementation of the MsMFE method.