added more edge and path distance functions, including smooth distance field tracing