override hashCode() and equals(Object) from Vec2D and Point