U.S. stocks rose on Tuesday as traders eyed a gain in crude oil prices and continued improvements in the Greece situation.