Move Optimize.hs into CodeGen module