start value iteration with euclidean distance