(nearly finsihed the leverage algoritms: they give weight to the rough points by checking the leverage of the points itself and the points around it)