Rebuild getPointsInRectangle and numPointsInRectangle