Assembly of stiffness matrix for 1D Poisson.