vector now used to successfully create resizable arrays of dynamically allocated particles