algorithm: lis: adding code for calculating Longest Increasing Subsequence