histograms.c has a very weird bug @ lines 96+ the tmpR tmpG tmpB get redicoulous values
i really don't know what is wrong :P