Text this: Matrix form of Legendre polynomials for solving linear integro-differential equations of high order