Vectorize entropy().

Use the code structure from the built-in function mean().
Vectorize pairsplit().
Remove redundant code in entropy() and pairsplit().
Optimize isunique().

Now genlist(10,6) takes less than 1 sec.
Replace tabs with whitespaces.