Orthogonal Directions Constrained Gradient Method: from non-linear equality constraints to Stiefel manifold