Add ack to Cosine similarity calculator.