Added routines to get rows/cols from sparse matrix, compiles but awaits testing