A Priori Estimates for Monge-Ampere Equation and Applications