Reduce matrix to something more manageable