Written algorithm for solving sample size problem, issue with StackOverflow in AliasTable
Rewritten SampleSize calculation, reincorperated old Alias