added a limit of size < 20 to the printed vector and fixed printMatrix
to actually print the matrix handed to it and not the one belonging to
the instance.