CalculateEmbeddingDim function

Estimate the proper embedding dimension for the RR time series