Added eucledian distance