Added a function to get a sparse_matrix entry from a submatrix, passes test