gd sgd
cmake
some modifications to gd, sgd