use optimx for minimisation but still very slow, added nnGradientFunction for making gradient and eleminated gradient in nnCostFunction; add andrew's code and comparation between fmincg and optimx