Added Edge class and moved intersection tests to new Intersection class