src: bugfix, distances were squared, now they should be right