md2zfactor function

Compute z-Factor based on MD.