Move the testing code from matrix_reduce_avx
Move the testing code from matrix_reduce_avx