refactor LIS into a class
add basic test for LIS