Finished batch gradient descent

Now works with multiple training examples!
Added an example and description in the comments