switching compiler to c++11
copy array pointer to vector