changed map<int,map <scalar_type,scalar_type> > y_E,y_G to	map<int,map <int,scalar_type> > iy_E,iy_G in calculate_EGb()..