Classy Kane Williamson hit his 19th test century to take the Black Caps to a lead of 198 runs heading into final day