C++11 for loop canceled -> too slow whatever options