Categorical distribution library for JavaScript. Capable of online learning, sampling the distribution and dumping it to an array to be stored for later use.