correct line filtering by intersections
Bitmap usage. Manual finding loop