Compelted runanalogicaltest and C file to compute distances to nearest vectors