added vertex validation to p2convex