first_non_na function

Returns the position of the first non-NA value