Third upload. The Jacobi method is now working, and the tqli is also working. What remains is adding another particle, adding time-function and setting the right values for pmax and N.