add gen distance table tool @lifulong