Added AVX support in CMakeLists.txt file that can be used using -DUSEAVX=ON with cmake