An Extension of the Frank and Wolfe Method of Feasible Directions