Simple algorithm for routing on a hypercube topology