absolute path of input and output directory
script to calculate the distance between two elements of the same thread.