beta distribution library