Added minibatch support to MarginRankingCriterion and PairwiseDistance.
Merge pull request #163 from vladmnih/batch

Added minibatch support to MarginRankingCriterion and PairwiseDistance.