Re-wrote calls to bincount in posterior.py to calls to histogram.