Statistical detection of chromosomal homology