Stochastic Ratios Tracking Algorithm for Large Scale Machine Learning Problems