Fixed type errors in Correlation.hs