Stack and Queue implementation using Arrays