Added 'distance' function

  which is a simple Euclidean distance for now