Merge plot.py and measure.py

Use './measure.py density|sparse' algo to measure a single algorithm.
Use './measure_all <scenario>' to write all logs to out/<scenario>.
Use './plot.py <scenario>' to plot all logs in out/<scenario>.