rename doc/md/manual.md to doc/md/mgl-manual.md
refactor and document

- MATify conjugate gradient

- unify gradient descent and conjugate gradient APIs

- replace TRAIN with MINIMIZE

- rename N-INPUTS to N-INSTANCES

- rename TRAINER to OPTIMIZER

- document gradient descent and conjugate gradient

- add numerically differentiable function as gradient source suitable
  for MINIMIZE