beta2 function

Reparameterised beta distribution