Moved Distance data type to seperate module; Started with tests