stats-na.contiguous function

Find longest contiguous stretch of non-NAs or check for NAs