Initial version of Monte Carlo simulator with fix for PriorityQueue when changing costs.