Implement stack and queue operations as ADT