Added type2roc.m