Path optimizer for laying a large collection of tapes