Academic Version of Entropy code DO NOT USE