Study of formation of molecules in the star forming regions using continuous time random walk monte carlo simulation