Added function for derivative of squared error, and unit test.
Added cross-entropy error function and derivative, with unit tests.