Fix for simulations that do not use LIS. Also fix memory error in tridiagonal matrix algorithm.