fix some dumb things in sse code
add AVX optimization but is disabled by default cause poor performance by compiler
fix some warning