Faster findIntersections and createGraph

Same question.