cleaned optimize routines
cleaned optimize routines

rmodrak/seisflows,PrincetonUniversity/seisflows,rmodrak/seisflows,PrincetonUniversity/seisflows,luan-th-nguyen/seisflows_ndt,luan-th-nguyen/seisflows_ndt