implemented the AVX version