An adaptive lifting scheme algorithm