Added ability to create a distribution from list of values