Merge new Legendre routines into master to allow larger degree sizes for other branches.