rcpp_calc_rowsums_for_COOweights_columnar function

Calculate sum of weights for each ancestral state