Add function to create histogram from Numpy array