Reversible Watermarking via Histogram Shifting and Least Square Optimization