added 'connect_lines' algorithm
misc