add q6 - euclidean distance and manhattan distance