Backpropagation gives partially correct results

Change the sigmoid function to the logistic function and backpropagation
implementation. This trains the network, but not nearly as fast as it
should.