added NaN test for crossprod
added NaN test for cumulative_sum