Stock market reaches an all-time high