Dij added
corrected option for Davids score algorithm