Solutions to some optimization challenges that I have attempted