Investigators used DNA evidence and genetic genealogy to link Matthew Nilo to four alleged attacks in 2007 and 2008, authorities said.