Entropy function and unit tests
Add typed dataset object and unit test.