Cosmetic changes

Added const key word to methods of MultiDimArrayLong and MultiPermutation object for clarity, and removed comments.
Minor changes to MiniProfiler object.

Added const and call-by-reference where appropriate.