Updated Probability functions to take pmf Hash values in addition to raw data. Need rspec tests.