Refactored the speed assigning to topology functions:- by using 'virtual
functions' passed as parameters that just assign speeds to individual
segments, was able to reduce code duplication at the higher level (think this
is the Strategy design pattern).