MATLAB and C Programming for Trefftz Finite Element Methods