sem2hw2task1: Moved ArrayListNode and PointerListNode structures into
the corresponding classes.
sem2hw2task1: Added unit test. Also fixed a bug: segmentation fault when
trying to delete the head of the pointer list if there is only one
element in it.