If the system of equations is not invertible, it could be that the system can be reduced to a smaller dimensioned matrix system. There is a check if solving for small number of unknowns that will do some other math, but it needs to be made more efficient (currently takes the inverse) and expanded to handle arbitrary number of unknowns.