Update test with realistic values
Fix bug with negative array indices
Add function to calculate cdf
Adjust test data formatting
Add function to create pmf for a constant value