add basic snopt c++ example