Exploring sparse representation for improved online handwriting recognition