Smith slams 164 against NZ