Correction of generated structure when reading file. Now using sorted
linked list