Refactoring of code for small matrices.