We implemented new algorithm for many lines detect