added a function which calculates the Empirical Copula