reading of histogram, matrix generation