fix distance matrix k and k-1 issue
Merge pull request #769 from vinayan/topol

Fix #5181,#4761 - Ftools-Distance Matrix