add AVX support to query