Add implematation of Liu algoritm