Create Secure Routing Algorithm