結果 : implement an algorithm to find the longest increasing subsequence in an array