Experts have built a computer programme that can diagnose illnesses by analysing the colour of a person's tongue.