added exercise skaling tree by matrix