Added tridiagonal algorithm to the heat flow lab.
Also cleaned up various other miscellaneous things.