added compare_optimizers method and use it in README