Convergence and rate of convergence of some greedy algorithms in convex optimization