Prepared the new algorithm.
Implementation of the new metric NormalizedTotalGradientImageToImageMetric