Solved max, middle_element, and sum_arrays methods so that all tests pass