Longest Increasing Subsequence Accepted

Accepted, also added as library function.