Added partition parameter to makeMask, fixed CMC plot bug only visible using crossValidate