made version of sobol_lib and added quick_write2 and prime functions