implemented canberra distance... fix the ratio function