Improved the data sctructure infitie (circular)