distributed version of SSGD