histK function

Kernel matrix histogram