Finished the quadrature for beta distribution.  Started on gamma, but there is bug.