Wrote distance function and tests for it.
Merge branch '0.2.cells' of github.com:NCFDev/cellular into 0.2.cells