add manhattan and euclidean distance