Added Dirichlet and Neumann boundary conditions to LOD solver for linear problems (not yet fully tested!).