Temporally implement the crossing number algorithm