Changed the implementation of multiplicative weights and mirror descent.