Merge pull request #52 from mantidproject/feature/10429_reduction_issue

Looks good. My kingdom for a compiler.
Re #10430. Some performance improvements.

In the test that I run the speed up is about 3 times.
Merge branch 'feature/10430_sxdmdnorm_performance' into develop