Creating directory for distances.