Theory, Extensions, and Applications of Recursive Least Squares