working on data structure of front tracking algorithm