Bug in jsp.py fixed: Second children timespan was not evaluated... Also improved the speed of the algorithm to create the DAG. Time complexity: O(N^2 * T).