fix bug in C resize routines
remove C codepath and change optimization setting
some premature optimization (but should help if get ported to avx)
migrate sse change to avx code, but still slower than sse