Move routing table to a separate module

Move the routing table classes to the routingtable module.