sampling grids with double double and quad double arithmetic