Modified MathUtil to have better named and more useful functions

- added a unit test for the haplotypeProbabilities