**Function name:**dista

**Description:**

The target of this function is to calculate the distances between xnew and x without having to calculate the whole distance matrix of xnew and x. The latter does extra calculaitons, which can be avoided.

**Authors:** Michail Tsagris and Manos Papadakis