Loop for phase correlation in C.
Correlations class.