Alastair Cook praised his side's faultless display as they levelled the series with a ten wicket victory.