Implement distance function

As we have the position of an InSpace object we can obiously calculate
the distance between two of them.