Efficient algorithms for the reconstruction and prediction of atmospheric turbulence in AO systems