A Parsing Technique for Sketch Recognition Systems