Partial commit for Kittler & Illingworth algorithm