Predict Stock-Market Behavior using Markov Chains and R