Optimized Hybrid Machine Learning Approaches for Stock Market Forecasting and Time Series Analysis