Simplified euclidean distance