iterative intersection algorithm working
working on integrating iterative box scan