implement basic Queue and its operations