Update cautoCost2.m