Refactored avx2 code by adding function aliases