Parallelize the preprocessing method

parallelize the preprocessing method. accelarate its spped.