fixed indexing bug
faster negbin from pybasicbayes