Re-implemented 'Entropy' and fixed a bug.