Routing algorithms for CS220