MSAAlgorithm: little refactoring.
MSAAlgorithm: optimization.
bugfix
MSAAlgorithm: another heave optimization.