[2211.00692] Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Tasks