For Madara: he batteled him so he has most chance to get a piece of him. For Orochimaru: He visited in konoha secret areas so he got his corpse. For Yamato: Orochimaru experimented on a lot of subject and Yamato was the only successful one ...for the rest IDK ,nice question BTW deserves +rep