MM algorithm
Merge https://github.com/vmr2117/nnet