allocate/free datum structs for histogram data