Made CrossCorrelation specific for MSClassifier. Added function for parameter tuning to CrossCorrelation. Fixed a bug and memory leaks in MSClassifier.