Former captains Dimuth Karunaratne and Dinesh Chandimal have combined for 147 to earn Sri Lanka a 202-run lead against New Zealand in the first Test in Galle.