Artin-Whaples approximations of bounded degree on algebraic varieties