private Variable findVariable(Variable var, Variable[] variables) {
		int index = Arrays.binarySearch(variables, var);
		if (index >= 0) {
			return variables[index];
		}
		return null;
	}
Finds a variable in the array that is equivalent to the one specified by var.
@param var a variable that is equivalent to the one in program1 to be changed.
The variable passed here could be from another program.
@param variables the variables to be searched
@return the equivalent variable in the array or null.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMerge.java