entropy and hoffman table generation added