Use easier to understand algorithm for LIS