結果 : recursive algorithm for finding maximum and minimum