Different routing algorithms in a simulated network written in Java