Creating function to plot comparisson with the other algorithm results.