particle evaluation and dynamic memory allocation for position vectors