Histogram and plotting API

Added two convenience plotting API.
Added histogram plotting and some experiment with quantization noise analysis.