Lowest common ancestor in suffix trees