How do we test the relative relationship of two individuals? For example, I would like to test whether person A is a 3rd cousin of person B. Could you please introduce me some effective but also efficient/simple algorithms for genealogy test?