Implementing Distance Sketch