Refactored code.
Implementation of stack using linked list.
Implementation of Queue using arrays.