England captain Alastair Cook praised Joe Root and Graeme Swann after the duo played starring roles in the 247-run win over New Zealand in Leeds.