algo4: backtracking: Restore ip addresses