entropy calculator up-to 16 bits