sgd.py added(test version).