A stochastic approximation method approximating the roots of time varying regression functions