Create fmincg.m

Please note copyright notice on this file