Use one matrix instead of two

Instead of storing the matrix coefficients in one square matrix and the
results in a separate vertical matrix, both are now stored in one
rectangular matrix. All examples had to be modified, so that their
arrangement fits the new structure. Almost all functions relating to
matrices have been changed. The CPU algorithm has been substantially
modified to work with this new matrix structure. The GPU algorithm has
not yet been modified to work again.