add isNaN function

CUDA implementation of AccelerateHS/accelerate#224