RdetR function

Correlation matrix and it's determinat