distance function is replaced with objc method.  Return values are NSNumbers.
distance function is replaced with objc method.  Return values are NSNumbers.