similarity algorithm for multiple features using normalized distance