Changed the name of temp to max in the divide and conquer algorithms.