Added functions isEmpty() and peek() for queue objects