calculate the entropy of a given file/stream
