Add shannon entropy, test

Added a little function to calculate [entropy](https://en.wikipedia.org/wiki/Entropy_(information_theory)) - not sure if it fits in here, but it seems like it might. Let me know what you think. Cheers!