Added function to create unique GT array for new text file format