A High Performance Exact Histogram Specification Algorithm