Added legacy backprop function

Also updated variable names to be more consistent with backprop!
Added GDM optimisation

Uncommented NNLayer operations needed for GDM optimisation
Merge pull request #1 from zaccranko/master

Pull in old code