Add the Legendre function to the hyperexpand table