Fixed and simplified incorrect tests, created separate class for comparing matrices in tests, fixed SortedMatrixGenerator only generating size 4 matrices.