Added eucledian algorithm