Inverse of the beta distribution function

Ruby implementation of missing p_value function for beta distribution.