intersection algo with tests added + triangle primitive added