Added on graphing while sorts are in progress, fixed counter to ensure max elements gets tested