1. MMPolicyGenerator: Fixed the removeDuplicateModes function and added it to propogateBeliefs