The S&P 500 is near all-time highs, leading some to question whether markets are in a bubble. A careful analysis of past bull markets suggests this is not the case.