added NaN test for sum
added NaN test for cross_prod