Function Approximation With XCS: Hyperellipsoidal Conditions, Recursive Least Squares, and Compaction