Modify the way to validate vector size in each distance mesure method