Added some more helper functions to the submatrix class. Now all submatrices with the same starting point are detected.