adding DynamicArray
fixing an issue in linked list, making a stack using linked list