simplify implementation of cross entropy

Changed the implementation to match the simpler flow of Entropy.  This
will also result in fewer operations.
Add tests for cross entropy's panic