* @brief Calculate the longest increasing subsequence for the specified numbers * @param a the array used to calculate the longest increasing subsequence * @param n the size used for the arrays * @returns the length of the longest increasing * subsequence in the `a` array of size `n` */