euclidean_distance.m as example for functions portion