Added missing hashcode to WeightedPoint to prevent HashSet.add from adding duplicates