Let's forget 3D for a while and imagine it all happens in 2D.
I have two edges that are crossing each other, they are on exactly the same plane when it comes to Z axis (z-dimension is thus not important). How do I add a common vertex to those two edges precisely in the spot where they cross each other?
For example: