Added binary search tree implementation for segment intersection algorithm