Dark Energy and Cosmic Curvature: Monte Carlo Markov Chain Approach