Sharif, Zardari agree on reinstating judges