Added legend and improved visual representation of selection sort