CalculateSampleEntropy function

Sample Entropy (also known as Kolgomorov-Sinai Entropy)