Update run.cpp

divide gradient_descent to gradient_descent_on_master and gradient_descent_on_worker