Added an isNaN function that takes in a vector.