Added profiling for brute-force and DFT-based cross correlation computation.
Fixed a bug in the paint scale legend (NaN in saturation causes Color.getHSB to return strangely discretized colors).