The clustering of high-redshift (2.9 ≤ z ≤ 5.1) quasars in SDSS stripe 82