C++ implementation of 2D Regional Correlation Analysis