Commit final function )

with 'traingd' optimization
Create a 3 layers NN