Classification and evolution in biology, linguistics and the history of science