Evolution of the sheared magnetic fields of two X class flares observed by Hinode XRT