mlim.preimpute function

carries out preimputation