HMM implementation for finding the most recent common ancestor for a given dataset.