logd_beta function

dgamma for beta