Adaptive kernel algorithms for time series prediction