Refactored out the computing of the final ordered result.

Refactored out the computing of the final ordered result.
Added the Hildur unit test, to ensure 3 votes for 3 candidates all of
which are different, yield a tied vote (which is broken by a random
choice atm).