Kernels on Structured Objects Through Nested Histograms