Feature  cdist autodep try2

this implementation has some more lines of code,
but no collision with the require variable.