Kexin, As we discussed, please make intraCorrelation a member of each compressor subclass that needs to use it, rather than a dynamically allocated object that is assigned to an intraCorrelationPtr pointer variable. I don't see any reason to provide access outside of the class, so I would also remove the intraCorrelation() accessor function and just access the member directly for code inside the class.
Kexin, As we discussed, please make intraCorrelation a member of each compressor subclass that needs to use it, rather than a dynamically allocated object that is assigned to an intraCorrelationPtr pointer variable. I don't see any reason to provide access outside of the class, so I would also remove the intraCorrelation() accessor function and just access the member directly for code inside the class.