Topics in optimization and learning