Create optimizeModel.c

Modified version of the "optimizeModel.c" code of the master version of RAxML.