dist.simple function

Cosine Distance