Improved performance of normalisation routine on the immutable version of ProbabilityMassFunction. Added test for locomotive problem against the immutable ProbabilityMassFunction.