add euclidean to matlab (tested)