NEW YORK ( Reuters ) - The Nasdaq Stock Market Inc ( NDAQ.O : Quote , Profile , Research ) has agreed to buy the Philadelphia Stock Exchange for about $ 650 million , moving it into the fast-growing U.S. options market , people familiar with the matter said on Tuesday .