GM algorithm
data files too