Refactoring: merged Population, Sample and VotingHandler classes into new class VotingScheme + misc improvements.