recursive adding of subjects to skills and their chilren