Cosine distance added
cosine distance added
annealing test