beginning of great refactoring of analitics code
fixes

1) use zero pairwise potentials instead of negative
2) fix in loss: now energy and Psi+Kappa coincide
3) some additional checking code for further debugging
compute objective of lSSVM after the last iter
fix primal objective
style fixes