fixed a bug with reading unsigned data as signed in the histogram pyramids