Pakistan and Bangladesh agree to strengthen ties