On the Erdos-Szekeres convex polygon problem