Added support for negative weights to MaxMargin.