corrected QP optimization for max margin. started random hard-EM
Merge branch 'refactor' of github.com:linqs/psl into refactor