Adds Connection structure

Connection has:
  * origin
  * target
  * distance