Added chapter for distance function.
Finalized short paper and add PDF version.