Matrix for second differneces