Inferring evolutionary trees from polymorphic characters, and an analysis of the Indo-European family of languages