fix deprecated methods in apache commons
fix some spelling
implement beta binomial distribution + associated tests