Function to find the number of pairs of points such that the line passing through them has a slope in the range [ - k , k ]
void findPairs ( vector < int > x , vector < int > y , int K ) { int n = x . size ( ) ;