Rewrite Compare to take advantage of the nametable.
Added and adapted bigram versions for comparison. Added quick sort.