Calculates factor-stratified sums for each column. Adapted from pagoda2. https://github.com/kharchenkolab/pagoda2/blob/main/src/misc2.cpp
get_sums(sY, rowSel)
matrix of summed counts per gene per sample
sparse matrix Gene by cell matrix of counts
factor The donor that each cell is from