Non-parametric approximate dynamic programming via the kernel method