On estimation of monotone and convex boundaries