Implement MCMC and GradientDescent.

- version 1.0 is done.