sem2hw2task2: Added forgotten arrayStack.h
sem2hw2task2: Fixed memory leaks