A scalable unified model for dynamic data structures in message passing (clusters) and shared memory (multicore CPUs) computing environments