modified compute to find furthest point pair