Text this: Legendre Ritz-Least squares method for the numerical solution of delay differential equations of the multi-pantograph type