Longest Increasing Sequence Program In Python