Mathematical Contest Modeling thesis