added iterator method to Queue