An Adaptive Identification and Prediction Algorithm for the Real-Time Forecasting of Hydrologic Time Series