broadcast route costs every timeout number of seconds

creates a RepeatTimer class that subclassses Thread and calls a function
every interval number of seconds. I need to implement locks so
threads calling update_costs() don't collide.