add G1.cxx for verify the result