First working but not analyzed version of analyzeMultiPerturbation.m