update dictionary learning

let rSet determined in each outer loops