Extend Kernel PCA prediction/denoising for handling matrices