Fixed several Memory Leaks, added new functions to CrossCorrelation