Kernel similarity matching with Hebbian Networks