Fix build failure for debug mode, changes dynamic allocation to std:;vec...

...tor dynamic allocation fir reduce