First implementation of Queue and Stack