Removing calculateDistribution from nominalAlgorithm