update the longest increasing sequence problems