fix fro icc: change unsigned int to size_t when looping over vector elements

change unsigned int to size_t to avoid strange icc optimization which causes segfault. This is the right thing to do any way