Novel Multistage Probabilistic Kernel Modeling in Handwriting Recognition