DSAG: A mixed synchronous-asynchronous iterative method for straggler-resilient learning