made corner cases more explicit, added a test for finding an intersection point for dual-core performance