some new exact implementation of problem329 (still wrong), and a parallel implementation of the montecarlo experiment