T-Optimality: A Stopping Rule for a First Order Algorithm