cleaned up get_csc_cols and get_csr_rows