(1) terminate process by name (2) insert elements to a dynamic array