What are some methods used to categorize organisms based on their shared ancestry?