Simple Termination Criteria for Stochastic Gradient Descent Algorithm