Improved LLCE algorithm