Added functions for backpropagation, feed forward and the inverse sigmoid.