added check if realloc returns NULL in Testcase.cpp Configuration::realloc_dup_input_particles.