dynarr is stack. stack as single linked list is not needed