Added Categorical distribution

Implemented a categorical distribution and test.