Implementation of LIS O(n^2)