added Nmissing parameter to MakeCompMatrix