Implement v_distance
Add compute_v_distance