Replaces all NAN values with Value.
The function will replace all occurences of NAN. If the vector is complex, it will replace any real/imag parts, which are NAN.
ReplaceNAN Method