Refactor this matrix into one with the same data, but attempting to lower the total number of nodes.
See Implementation
Refactor this matrix into one with the same data, but attempting to lower the total number of nodes.