Analysis of Stock Indices and Their Impact on Market