Added Categorical distribution

Implemented categorical distribution and associated test.