Make truncate_most_common have linear time complexity.

Fixes #5.
Merge branch 'master' of github.com:dossier/dossier.fc