use StatsBase.make_alias_table! method