Complete implementing the algorithm and unit tests.  Refs #6904.
Merge branch 'feature/6904_mask_to_table' into develop