Added GDM optimisation

Uncommented NNLayer operations needed for GDM optimisation