Recursive least squares approach to learning in recurrent neural networks