cosnormX function

Cosine normalization of a matrix