cosNorm function

Cosine normalization of a kernel matrix