debugged intersection.py such that each segment goes over its bin both on the left and on the right.