Added distance module
Written a test for distances