Added mini-batch gradient descent.  Began separation of cost and jac functions in preparation for scipy optimization using CG and L-BFGS.