Added scrolling to the algorithm displays

Also fixed bug where tree would paint nodes with same value when they
shouldnt have been