master: adding hasIntersection, indexOf