k values defined as 64 bit array to avoid problems with np.histrogram