Finding the min distance at the end of the processing
fixed a bug regarding the rand_route function

When copy an array make sure to use slice to avoid referencing…