added stack implementations (array and linked list based)