An Efficient Image Compression Algorithm Based on the Integration of a Histogram Indexed Dictionary and the Huffman Encoding for Medical Images