Implementation of random Fourier features for kernel method, like support vector machine and Gaussian process model