fixed divide-by-zero in VotedPerceptron, more work in metropolis and hard EM