Improve distinctness confusion metric

Fixes https://github.com/numenta/nupic.research/issues/106.