Coalescent Theory and Its Applications in Population Genetics