Speed-up searching for overlapping e-i junctions using binary search