since times are stored in arcs, calloc instead of malloc them.