Calculating correlation function of position of galaxy from The 2dF QSO Redshift Survey (2QZ)