Added GDiff implementation from thesis