add swoopyLines algorithm