Reworked the recursive legendre structure.
Tests for rl5.