Adding DistAlgo stuff and changes to the visualizer code.