added vector_distance and average functions