Adding to get_trendline two more result values of the max_x and the max_y