A Fast Prediction Mode Selection Algorithm Based on Spatio-Temporal Correlation of Inter-prediction and Intra-prediction Blocks