Computational Aspects of Prediction Markets