Correct value of d_histoarray is not being passed to compact function.