Fix a bug causing memory error in rdf_dlchau.f90 and rdf_xyz.f90

The temp_g is allocated wrongly, of which the index should
begin from 0 instead of 1.