Updated working version

forgot to call the sort_swap_array method in my final
avg_max_min method!