Add dynamic link delay metric in bellmen-ford algorithm

There is boolean variable DYNAMICH_ROUTE_DISTANCE_METRIC in constant.py
to control using hops or dynamic link delay as metric.
dynamic routing algorithm