added MPLP

Max-product LP relaxation inference for factor graph model.
Unit-test has been added.
Examples will be added soon.
@Jiaolong @iglesias I suggest to close this one first. 

@Jiaolong It's important to send an independent PR for SGNDArray. We need to make sure our change will not affect any other classes using SGNDArray.