further NEON and SVE optimization done.