A quick little mod for doing basic stats on vectors which contain nans, just like in Matlab