create new orthogonalBasis class and move LegendrePolynomials and JacobiPolynomials into the new files