Writer independent and writer adaptive neural network for on-line character recognition