f3_mid()

Bouns: f3_add
Theoretical edge tree search and insert
Factor out vertex assignment to and edge node and error checking
Add an edge tree to the index
Theoretically computing an edge index.

It doesn't crash, but I haven't tried to use or measure
it either.