Added longest increasing subsequence solver

Takes an array and finds the longest subsequence with dynamic
programming.