Update fmincg.py

Had to replace np.dots to np.multiplys at a few points and also the concatenation part. I've tested this with Coursera/Machine Learning fall 2013 course material and it mainly works. I'm on Python version 2.7.