A Context Aware Recommendation System through Exploring and Optimizing Latent Preferences