create_matrix function

Create a dataframe for the ancestry.