Update nearestDSmax_RE.c

A pointer to F needs to be passed as a parameter since the matrix can't be returned in C