Add method merge_base to find a merge base between two commits