Title: Partitioning arrangements of lines: I. An efficient deterministic algorithm