The Stock Market Is Repeating a Pattern Not Seen Since 2000. Here's What History Says Comes Next.