created euclidean distance class.