reorganized code and added estimator for condorcet model