Reorg and adding ShannonFano implementation.