A simple polynomial time algorithm for a convex hull problem equivalent to linear programming