Add optim as a submodule instead of manually cloning it.