SMS: Reconstructing prehistorical dialects