implemented prefix matcher for routing table