use -march=native in makefile
replace raw loop with range-based loop