break up the lines per http://mike.teczno.com/notes/polygonize.html