correct some error in MFR. program will break when group has only one row
modify complie command
correct return value in path_same_grp()