Algorithm Implementations (Routing + Encryption and Compression)