Forecasting of Nonlinear Time Series using ANN