Using data mining to analyze handwriting