fixing a bug in my calculation of the binomial coffecient matrix