Fixed a bug, Q/Length.
Added round-trip cost.
Wrote histogram function for debugging.