implemented longest prefix match.  Also fixed the send arp request function in arpcache.